--[[
-- @Author:      feilong
-- @DateTime:    2020-11-13 23:05:48
-- @Description: redis消息的处理
-- @Example:
	local data = g:call(".redis.service", nil, "get", "num")
	g.log:debug("redis data", data)


--]]


---------------------------------------------------------
-- class
---------------------------------------------------------
local Service = class("Redis")

function Service:ctor(name)
    self.manager = new("redis.manager")
    self:register()
end

function Service:register()
    g.register('start', handler(self, self.onStart))
    g.register('close', handler(self, self.onClose))

end

function Service:onStart()

    return true
end
function Service:onClose()
    return true
end

return Service